package com.roy.roycodegenerator.service.file.impl;

import java.io.InputStream;
import java.util.List;

import org.apache.commons.net.ftp.FTPFile;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.roy.roycodegenerator.common.ftp.FtpInfo;
import com.roy.roycodegenerator.service.file.FileService;
import com.roy.royminidao.common.framework.lang.result.GenericResult;
import com.roy.royminidao.common.framework.lang.result.Result;

import net.sf.jsqlparser.statement.select.Limit;

/**
 * 
 * 文件服务实现类<br>
 * 〈功能详细描述〉
 *
 * @author roy
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Service("fileService")
public class FileServiceImpl implements FileService {

    private Logger logger = LoggerFactory.getLogger(FileServiceImpl.class);

    @Value("#{royparams.ftpHostname}")
    private String ftpHostname;

    @Value("#{royparams.ftpPort}")
    private String port;

    @Value("#{royparams.ftpUsername}")
    private String ftpUsername;

    @Value("#{royparams.ftpPassword}")
    private String ftpPassword;

    @Value("#{royparams.ftpFolder}")
    private String ftpFolder;

    private FtpInfo ftpInfo;

    /*
     * (non-Javadoc)
     * @see com.roy.roycodegenerator.service.file.FileService#queryFile(java.lang.String,
     * net.sf.jsqlparser.statement.select.Limit)
     */
    @Override
    public GenericResult<List<FTPFile>> queryFile(String pathname, Limit limit) {
        
        // TODO Auto-generated method stub
        return null;
    }

    /*
     * (non-Javadoc)
     * @see com.roy.roycodegenerator.service.file.FileService#downFile(java.lang.String, java.lang.String,
     * java.lang.String)
     */
    @Override
    public Result downFile(String fileCode) {
        // TODO Auto-generated method stub
        return null;
    }

    /*
     * (non-Javadoc)
     * @see com.roy.roycodegenerator.service.file.FileService#uploadFile(java.lang.String, java.lang.String,
     * java.io.InputStream)
     */
    @Override
    public Result uploadFile(String remoteFilePath, String remoteFileName, InputStream localInput) {
        // TODO Auto-generated method stub
        return null;
    }

}
